<template>
  <el-input-number v-bind="inputNumberProps" v-on="inputNumberEvents">
    <!-- 插槽内容 -->
    <template v-for="(_, slot) in $slots" #[slot]="scope">
      <slot :name="slot" v-bind="scope || {}"></slot>
    </template>
  </el-input-number>
</template>

<script lang="ts">
import { defineComponent, PropType } from 'vue';

export default defineComponent({
  name: 'BaseInputNumber',
  props: {
    inputNumberProps: {
      type: Object as PropType<Record<string, any>>,
      default: () => ({})
    },
    inputNumberEvents: {
      type: Object as PropType<Record<string, any>>,
      default: () => ({})
    }
  }
});
</script>
